#!/usr/bin/env bash
echo "loading..."
pid=`pidof swoole`
echo $pid
kill -USR1 $pid
echo "loading success"
# linux 信号控制：USR1 平滑重载所有worker进程并重新载入配置和二进制模块